package com.bwie.service.impl;

import com.bwie.service.MyService;
import com.bwie.utils.R;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @Author: tsh
 * @Date: 2025/7/21 20:54
 * @Description: TODO
 **/
@Service
public class MyServiceImpl implements MyService {


    @Async
    @Override
    public void sendNotification(String message) {
        System.out.println("sendNotification"+message);
    }

    @Async
    @Override
    public void sendEmail(String message) {
        System.out.println("sendEmail"+message);
        throw new RuntimeException("邮件异常");
    }

    @Async
    @Override
    public void sendSMS(String message) {
        System.out.println("sendSMS"+message);
    }
}
